package com.liudadan.mapper;

import com.liudadan.pojo.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface EmployeeMapper {
    /**
     * 简单返回值类型
     * @return
     */
    int selectEmpCount();

    /**
     * 返回实体类类型
     * @param empId
     * @return
     */
    Employee selectEmployee(Integer empId);

    /**
     * 返回Mapper类型
     * @return
     */
    Map<String,Object> selectEmpNameAndMaxSalary();

    /**
     * 返回list类型
     * @return
     */
    List<Employee> selectAll();

    /**
     * 返回主键值
     * @param employee
     * @return
     */
    int insertEmployee(Employee employee);
}